<h1>Sign up as a new user</h1>
<% @user.password = @user.password_confirmation = nil %>

<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| -%>
<p><%= f.label :name %><br/>
<%= f.text_field :name %></p>

<p><%= f.label :login, "User Name" %><br/>
<%= f.text_field :login %></p>

 <p><%= f.label :email %><br/>
<%= f.text_field :email %></p>

<% if false%>
<p><%= f.label :gender %><br/>
    <%= radio_button :user, :gender, "M"%>
    <%= f.label :male %>
    <%= radio_button :user, :gender, "F" %>
    <%= f.label :female %>
</p>

<p><%= f.label :login, "User Name" %><br/>
<%= f.text_field :login %></p>
    


<p><%= f.label :BirthDate %><br/>    
<% #= f.date_field(:user, :dob, :value => Date.today) %>
<%= date_field('person', 'birthday', :value => "") %>



<p><%= f.label :country %><br/>

<%= select(:user, :country, @country.all.collect {|p| [ p.country_code, p.id ] }, {:prompt => 'Select a Country'}) %>
</p>


<p><%= f.label :city %><br/>
<%= f.text_field :city %></p>

<p><%= f.label :address %><br/>
<%= f.text_field :address %></p>

<p><%= f.label :zip_code %><br/>
<%= f.text_field :zip_code %></p>

<p><%= f.label :phone %><br/>
<%= f.text_field :phone %></p>

<p><%= f.label :fax %><br/>
<%= f.text_field :fax %></p>    

    <% if false%>
<!-- <p><%= f.label :url %><br/>
<%= f.text_field :url %></p> -->
        <% end %>

<p><%= f.label :leisure %><br/>
<%= f.text_field :leisure %></p>


              <% end %> 

<p><%= f.label :password %><br/>
<%= f.password_field :password %></p>

<p><%= f.label :password_confirmation, 'Confirm Password' %><br/>
<%= f.password_field :password_confirmation %></p>

<p><%= submit_tag 'Sign up' %></p>
<% end -%>
